const {spawn} =require("child_process");

//spawn("命令",["执行文件"])
let childProcess=spawn("node", ["node-child.js","--test"]);

childProcess.stdout.on("data",(chunk)=>{
    console.log(chunk.toString())
})